[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ANSIPOS IEXP1,IEXP2

 Function
  If ANSI is available, position the cursor in column IEXP1 row IEXP2
   Legal ranges:  1 <= IEXP1 <= 80
                  1 <= IEXP2 <= 23 (Because of the status lines)
                  (1,1) is the top left corner of the screen
 Syntax
  ANSIPOS xpos, ypos

   xpos   - An integer expression with the screen column (x position)
            in which to place the cursor.  Valid columns are 1 through 80.
   ypos   - An integer expression with the screen row (y position) on
            which to place the cursor.  Valid rows are 1 through 23.

 Remarks
  This statement will position the cursor to the specified (X,Y)
  coordinate on the screen but only if the current caller has ANSI
  support.  If you are writing a program that will require ANSI
  positioning, check the value of the ANSION() function.  If ANSI is
  not available, this statement will be ignored.

 Examples
  CLS
  IF (ANSION()) THEN
   ANSIPOS 1,1
   PRINTLN "This starts at (1,1)"
   ANSIPOS 3,3
   PRINTLN "This starts at (3,3)"
   ANSIPOS 2,2
   PRINTLN "And *THIS* starts at (2,2)"
  ENDIF

See Also: ANSION() BACKUP FORWARD GETX() GETY() GRAFMODE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson